// Copyright (c) 2024 刻BITTER
// 
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.


// 由于Arduino IDE 不能编辑编译选项，宏定义必须放在include 头文件之前
// #define _IOXX_ARCH_ARDUINO

// #include <ArxContainer.h>
// #include <MsTimer2.h>

#include "ioxx_scheduler_basic.hpp"
#include "lipid.hpp"

namespace sb = scheduler_basic;
using TimeSource = sb::ArduinoMsSource;
using TimeCycle = sb::TimeCycle<TimeSource>;


sb::DelayCallback2<TimeSource, 10> sch(0, 0);
lipid::BicycleThermalPid pid2;


#include <Arduino.h>
#include <algorithm>


void setup() {
    pid2.tune_gc0(10, 0, 0);
    pid2.tune_gc1(1, 0, 0, 0);

    int a = min(9, 10);
    int b = abs(-8);
}

void loop() {}
